package com.yifeng.repo.micro.service.server.auth.ucs.interceptor.context;

import com.yifeng.repo.micro.service.server.auth.ucs.interceptor.model.UcsLoginUserInfo;

public class UcsContext {
    private static final ThreadLocal<UcsLoginUserInfo> UCS_LOGIN_INFO = new ThreadLocal<>();

    public static void set(UcsLoginUserInfo ucsLoginUserInfo) {
        UCS_LOGIN_INFO.set(ucsLoginUserInfo);
    }

    public static UcsLoginUserInfo get() {
        return UCS_LOGIN_INFO.get();
    }

    public static void clear() {
        UCS_LOGIN_INFO.remove();
    }
}
